<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Spec extends Model
{
	use SoftDeletes;

	public $table = 'spec';

    protected $fillable = [
    	'spec_name','type_id','spec_type'
	];

	/**
	 * 一对多关联规格
	 * User: Clannad ~ ☆
	 * DataTime：2019/11/15 0015 15:35
	 * @return \Illuminate\Database\Eloquent\Relations\HasMany
	 */
	public function spec_value()
    {
		return $this->hasMany(SpecValue::class,'spec_id','id');
    }
}
